package com.bingo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.bingo.common.R;
import com.bingo.entity.ClearLoss;
import com.bingo.entity.dto.CleanLoss;
import com.bingo.entity.dto.everyDayForm.EveryDayClear;
import com.bingo.entity.dto.resp.ClearRecord;
import com.bingo.entity.dto.resp.RespSiteClearLoss;

import java.sql.Date;
import java.util.List;

public interface ClearLossService extends IService<ClearLoss> {
     R add(String poolNo, Date date, String userId);

     //汇总时间段清塘亏损
     CleanLoss selectCleanLoss(String poolNo, Date startTime, Date endTime);

     //查询时间段内的清塘记录
     List<EveryDayClear> selectEveryDayClearLoss(List<String> poolNos, Date startDate, Date endDate);

     //查询清塘记录
     List<ClearRecord> selectClearRecord(List<String> poolNos, Date startDate, Date endDate, String userId);

     //查询场的清塘记录
     List<RespSiteClearLoss> selectSiteClearLoss(List<String> siteNos, Date startDate, Date endDate);

}
